package com.gump.mall.modules.ums.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.gump.mall.modules.ums.mapper.UmsResourceCategoryMapper;
import com.gump.mall.modules.ums.model.UmsResourceCategory;
import com.gump.mall.modules.ums.service.UmsResourceCategoryService;

/**
 * @auther zzc
 * @date 2020/9/10 16:20
 * 概要：
 */

@Service
public class UmsResourceCategoryServiceImpl implements UmsResourceCategoryService {

    @Resource
    private UmsResourceCategoryMapper umsResourceCategoryMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return umsResourceCategoryMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(UmsResourceCategory record) {
        return umsResourceCategoryMapper.insert(record);
    }

    @Override
    public int insertSelective(UmsResourceCategory record) {
        return umsResourceCategoryMapper.insertSelective(record);
    }

    @Override
    public UmsResourceCategory selectByPrimaryKey(Long id) {
        return umsResourceCategoryMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(UmsResourceCategory record) {
        return umsResourceCategoryMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UmsResourceCategory record) {
        return umsResourceCategoryMapper.updateByPrimaryKey(record);
    }

}
